package com.qf.device.controller;

import com.qf.device.entity.DeviceModel;
import com.qf.device.service.DeviceModelService;
import com.qf.dto.PageDto;
import com.qf.vo.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 租户物模型属性表 前端控制器
 * </p>
 *
 * @author zhu
 * @since 2023-10-26
 */
@RestController
@RequestMapping("/deviceModel")
public class DeviceModelController {

    @Autowired
    private DeviceModelService deviceModelService;

    /*分页查询*/
    @PostMapping("page")
    public PageResult<DeviceModel> page(@RequestBody PageDto<DeviceModel> pageDto){
        return deviceModelService.pageInfo(pageDto);
    }






}
